﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Muel.TypeScriptFacade.Core
{
    public class TypeScriptFacadeException : Exception
    {
        public TypeScriptFacadeException() : base() { }
        public TypeScriptFacadeException(string message) : base(message) { }
        public TypeScriptFacadeException(string message, Exception innerException) : base(message, innerException) { }
    }

    public class UnexpectedObjectException : TypeScriptFacadeException
    {
        public UnexpectedObjectException(Type type) : base(string.Format("Object of type {0} does not use DataContractAttribute", type)) { }
    }
}
